package com.gitee.shigen.security.mapper;

import com.gitee.shigen.security.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;

/**
 * @author shigenfu
 * @since 2024-01-21
 */
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 根据userId获得全部的角色
     * @param userId 用户ID
     * @return 角色列表
     */
    List<Role> selectByUserId(Long userId);

}
